﻿<%@ Page Title="测试" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TestPage.aspx.cs" Inherits="TestSystem.考试页面" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h1 align="center">
        数学期末考试
    </h1>
    <p align = "center" >
        考试说明：本考试仅为测试，不是很重要……
    </p>

    <div id = "ChooseDiv" runat = "server">
        <p >一. 选择题</p>
        <asp:DataList ID = "ChooseList" runat = "server">
            <ItemTemplate>
                <asp:Label ID = "Description" runat = "server">
                    <%# Eval("Description") %>
                </asp:Label>

                <br />

                <asp:RadioButtonList ID = "Answer" runat = "server">
                    <asp:ListItem>A. 很赞同</asp:ListItem>
                    <asp:ListItem>B. 赞同</asp:ListItem>
                    <asp:ListItem>C. 无所谓</asp:ListItem>
                    <asp:ListItem>D. 反对</asp:ListItem>
                    
                </asp:RadioButtonList>

                <br />
            </ItemTemplate>
        </asp:DataList>

        <p>二. 填空题</p>

        <asp:DataList ID = "BlankList" runat = "server">
            <ItemTemplate>
                <asp:Label ID = "Description" runat = "server">
                    <%# Eval("Description") %>
                </asp:Label>

                <asp:TextBox ID = "Answer" runat = "server" Width = "200" />

                <br />
            </ItemTemplate>
        </asp:DataList>

        <br />

        <p align = "center">
            <asp:Button ID = "SubmitButton" runat = "server" Text = "Submit" OnClick = "SubmitButton_Click" Height = "35"  />
        </p>
        

        <br />
    </div>
    
</asp:Content>
